﻿using System;
using System.Collections.Generic;

namespace Terraria.GameContent
{
	// Token: 0x020003BB RID: 955
	public static class FixExploitManEaters
	{
		// Token: 0x060021E5 RID: 8677 RVA: 0x00017E16 File Offset: 0x00016016
		public static void Update()
		{
			FixExploitManEaters._indexesProtected.Clear();
		}

		// Token: 0x060021E6 RID: 8678 RVA: 0x00469348 File Offset: 0x00467548
		public static void ProtectSpot(int x, int y)
		{
			int item = (x & 65535) << 16 | (y & 65535);
			if (!FixExploitManEaters._indexesProtected.Contains(item))
			{
				FixExploitManEaters._indexesProtected.Add(item);
			}
		}

		// Token: 0x060021E7 RID: 8679 RVA: 0x00469380 File Offset: 0x00467580
		public static bool SpotProtected(int x, int y)
		{
			int item = (x & 65535) << 16 | (y & 65535);
			return FixExploitManEaters._indexesProtected.Contains(item);
		}

		// Token: 0x04003E18 RID: 15896
		private static List<int> _indexesProtected = new List<int>();
	}
}
